from django.template import Library

register = Library()

def untouched(cl):
    return cl.order_field == 'admin_ordering' and \
        cl.order_type == 'asc' and \
        cl.result_count == cl.full_result_count

register.filter(untouched)